package com.fs;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author shuai.fang
 * @date：2017-04-10
 * @description：
 */
public class Person {

	@NotNull
	@Length(min = 2, message = "长度不能小于2")
	private String name;

	@NotNull
	private Integer age;

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
